package com.wesley.proxy;

/**
 * @author:wesley
 */
public class TankTimeProxy implements Moveable {

    private Moveable m ;

    public TankTimeProxy(Moveable m) {
        this.m = m;
    }

    @Override
    public void move() {
        long start = System.currentTimeMillis();
        System.out.println("开始计时");

        m.move();

        long end = System.currentTimeMillis();
        System.out.println("计时完毕, 共消耗："+(end - start));

    }


}
